#include <stdio.h>

enum week
{
    Sun=1,Mon,Tues,Wed,Thur,Fri,Sat
};

int main()
{
    int day;
    scanf("%d", &day);
    switch(day){
        case Sun: printf("Sunday is the first day of a week"); break;
        case Mon: printf("Monday is the second day of a week"); break;
        case Tues: printf("Tuesday is the third day of a week"); break;
        case Wed: printf("Wednesday is the fourth day of a week"); break;
        case Thur: printf("Thursday is the fifth day of a week"); break;
        case Fri: printf("Friday is the sixth day of a week"); break;
        case Sat: printf("Saturday is the last day of a week"); break;
        default: printf("Error!");
    }
    return 0;
    
}